i = 1
while i <= 5:
    j = 1
    while j <= i:
        print("*", end='')
        j += 1
    print()  # 在每一行结束后换行
    i += 1
